package com.sanfu.etl.pojo;

import org.springframework.stereotype.Repository;

import java.util.Map;

// *********************
// ** @Date: 2021-06-29
// ** @Author: Camemax
// ** @Description: 实体类，封装从kafka消费成功的OGG数据
// *********************

@Repository
public class OGGData {
    private String tableName;
    private String sqlType;
    private Map<String, String> dataInfo;

    public OGGData(){}

    public OGGData(String tableName, String sqlType, Map<String, String> dataInfo) {
        this.tableName = tableName;
        this.sqlType = sqlType;
        this.dataInfo = dataInfo;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getSqlType() {
        return sqlType;
    }

    public void setSqlType(String sqlType) {
        this.sqlType = sqlType;
    }

    public Map<String, String> getDataInfo() {
        return dataInfo;
    }

    public void setDataInfo(Map<String, String> dataInfo) {
        this.dataInfo = dataInfo;
    }

    @Override
    public String toString() {
        return "OGGData{" +
                "tableName='" + tableName + '\'' +
                ", sqlType='" + sqlType + '\'' +
                ", dataInfo=" + dataInfo +
                '}';
    }
}
